<template>
  <el-container>
    <el-header>
      <el-row type="flex" justify="space-between">
        <el-col :span="10">
          <div class="grid-content bg-purple">
            <img src="../assets/images/logo.png" alt="logo" />
            <i @click="goback" class="el-icon-arrow-left"></i>
            <el-input
              v-model="input2"
              placeholder="请输入内容"
              class="el-input-my"
              suffix-icon="el-icon-search"
            ></el-input>
          </div>
        </el-col>
        <el-col :span="6">
          <div class="grid-content bg-purple">
            <el-row type="flex">
              <el-col class="icon-deriction">
                <i class="el-icon-user-solid my-con"></i>
                <i class="el-icon-message my-con"></i>
                <i class="el-icon-setting my-con"></i>
              </el-col>
              <el-col class="icon-deriction">
                <i class="el-icon-minus"></i>
                <i class="el-icon-close"></i>
              </el-col>
            </el-row>
          </div>
        </el-col>
      </el-row>
    </el-header>
    <el-container>
      <el-aside width="15%">
        <li class="el-icon-headset">发现音乐</li>
      </el-aside>
      <el-main style="overflow-x:auto; height:600px;">
        <keep-alive include="navbar">
          <router-view></router-view>
        </keep-alive>
      </el-main>
    </el-container>
    <el-footer height="50px">
      <my-audio></my-audio>
    </el-footer>
  </el-container>
</template>

<script>
import myAudio from "components/my-audio/my-audio"
export default {
  created () {
    this.$router.push({ name: "导航" })
  },
  data () {
    return {
      input2: ""
    }
  },
  methods: {
    goback () {
      this.$router.go(-1)
    }
  },
  components: {
    myAudio
  }
};
</script>

<style scoped lang="scss">
.el-main::-webkit-scrollbar {
  /*滚动条整体样式*/
  width: 8px; /*高宽分别对应横竖滚动条的尺寸*/
  height: 1px;
}
.el-main::-webkit-scrollbar-thumb {
  /*滚动条里面小方块*/
  border-radius: 10px;
  background-color: #ccc;
}
.el-main::-webkit-scrollbar-track {
  /*滚动条里面轨道*/
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
  background: #ededed;
  border-radius: 10px;
}

.el-header {
  min-width: 1080px;
}
.el-input-my {
  width: 300px;
  position: absolute;
  left: 20%;
}

.el-header,
.el-footer {
  background-color: #b3c0d1;
  color: #333;
  text-align: center;
  line-height: 50px;
  padding: 0;
}
.el-footer {
  border-top: 1px solid #aaa;
}

.el-header {
  padding: 0;
  background-color: #c20c0c;
}

.el-aside {
  background-color: #ddd;
  color: #333;
  text-align: center;
  line-height: 20px;
  text-align: left;
  li {
    list-style: none;
    height: 20px;
    padding: 5px 20px;
    cursor: pointer;
  }
}

.el-main {
  background-color: #fff;
  color: #333;
  padding: 0px 30px;
}

.el-row {
  margin-bottom: 20px;
  &:last-child {
    margin-bottom: 0;
  }
}
.el-col {
  border-radius: 0;
  height: 60px;
}

.grid-content {
  border-radius: 0px;
  min-height: 60px;
  img {
    float: left;
    margin-right: 30px;
  }
  i {
    font-size: 25px;
    color: white;
    cursor: pointer;
    margin: 5px 10px;
  }
  .icon-deriction {
    text-align: right;
  }
}
.row-bg {
  padding: 10px 0;
}

.el-icon-arrow-left {
  position: absolute;
  left: 15%;
  font-size: 18px !important;
  top: 30%;
  border: 1px solid rgba(#000, 0.1);
}
</style>
<style lang="scss">
.el-container {
  width: 100%;
}
</style>